package com.originskyseed.platform.count.mapper;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.count.model.FinancialManage;

/**
 * 财务管理信息Mapper类（OSI_FINANCIAL_MANAGE）
 *
 * @author wlj
 */
public interface FinancialManageMapper {

	/**
	 * 删除记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(FinancialManage record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(FinancialManage record) throws Exception;

	/**
	 * 更新记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(FinancialManage record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(FinancialManage record) throws Exception;

	/**
	 * 查询记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public FinancialManage selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<FinancialManage> selectList(FinancialManage record) throws Exception;

	/**
	 * 检查同期类型账单是否存在
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public FinancialManage checkFinancialManage(FinancialManage record) throws Exception;

	/**
	 * 分页查询列表
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<FinancialManage> selectListByPage(Map<String, Object> params) throws Exception;

	/**
	 * 开放平台 财务管理列表 分页查询列表
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<FinancialManage> financialListByPage(Map<String, Object> params) throws Exception;

	/**
	 * 查询用户的成本
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<Map<String,Object>> selectUserBasePay(Map<String,Object> params) throws Exception;
}
